package com.example.camerapush.bean;

import com.bigkoo.pickerview.model.IPickerViewData;

import java.util.List;

/**
 * Author:lsh
 * Version: 1.0
 * Description:
 * Date: 2018/2/21
 */

public class AlbumBean {

    /**
     * code : 9900
     * msg : 正确返回
     * data : {"list":[{"id":10,"sn":"","name":"我的相册","desc":"我的相册","time":"","place":"","poster_url":"","mantle_url":"","watermark_url":"","is_release":2,"member_id":2,"member_type":2,"update_time":"2018-02-10 10:11:48","create_time":"2018-02-10 10:11:48","delete_time":null,"creator":"测试账号","updater":"测试账号","ip":"220.115.233.200","album_member":[{"id":8,"album_id":10,"member_id":2,"type":1,"update_time":"2018-02-10 10:11:48","create_time":"2018-02-10 10:11:48","delete_time":null,"creator":"测试账号","updater":"测试账号","ip":"220.115.233.200"}],"member":{"id":2,"name":"测试账号"}},{"id":5,"sn":"12","name":"22","desc":"1222","time":"12","place":"12","poster_url":"","mantle_url":"","watermark_url":"","is_release":2,"member_id":1,"member_type":2,"update_time":"2018-02-03 18:47:33","create_time":"2018-02-01 17:35:45","delete_time":null,"creator":"admin","updater":"测试账号","ip":"220.115.233.200","album_member":[{"id":1,"album_id":5,"member_id":2,"type":4,"update_time":"2018-02-02 14:40:16","create_time":null,"delete_time":null,"creator":"","updater":"admin","ip":"221.238.11.98"},{"id":3,"album_id":5,"member_id":1,"type":3,"update_time":"2018-02-02 14:39:44","create_time":"2018-02-02 14:39:44","delete_time":null,"creator":"admin","updater":"admin","ip":"221.238.11.98"}],"member":{"id":1,"name":"admin"}},{"id":2,"sn":"0033","name":"测试2","desc":"测试2描述描述测试2描述描述测试2描述描述测试2描述描述","time":"9月23日 早上5点","place":"海河弯","poster_url":"images/d19da847_3e0c_c6f3_c55f_62a0c90ce277","mantle_url":"images/55683e34_ce87_9ecb_0405_090ac0a06f25","watermark_url":"images/54ac2a4c_9042_d1a0_503f_2d5869f1f220","is_release":2,"member_id":1,"member_type":2,"update_time":"2018-02-01 17:35:00","create_time":"2018-01-29 11:44:44","delete_time":null,"creator":"admin","updater":"admin","ip":"221.238.11.98","album_member":[{"id":7,"album_id":2,"member_id":2,"type":3,"update_time":"2018-02-05 08:55:44","create_time":"2018-02-05 08:55:44","delete_time":null,"creator":"admin","updater":"admin","ip":"221.238.11.98"}],"member":{"id":1,"name":"admin"}}],"total":3}
     */

    private int code;
    private String msg;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * list : [{"id":10,"sn":"","name":"我的相册","desc":"我的相册","time":"","place":"","poster_url":"","mantle_url":"","watermark_url":"","is_release":2,"member_id":2,"member_type":2,"update_time":"2018-02-10 10:11:48","create_time":"2018-02-10 10:11:48","delete_time":null,"creator":"测试账号","updater":"测试账号","ip":"220.115.233.200","album_member":[{"id":8,"album_id":10,"member_id":2,"type":1,"update_time":"2018-02-10 10:11:48","create_time":"2018-02-10 10:11:48","delete_time":null,"creator":"测试账号","updater":"测试账号","ip":"220.115.233.200"}],"member":{"id":2,"name":"测试账号"}},{"id":5,"sn":"12","name":"22","desc":"1222","time":"12","place":"12","poster_url":"","mantle_url":"","watermark_url":"","is_release":2,"member_id":1,"member_type":2,"update_time":"2018-02-03 18:47:33","create_time":"2018-02-01 17:35:45","delete_time":null,"creator":"admin","updater":"测试账号","ip":"220.115.233.200","album_member":[{"id":1,"album_id":5,"member_id":2,"type":4,"update_time":"2018-02-02 14:40:16","create_time":null,"delete_time":null,"creator":"","updater":"admin","ip":"221.238.11.98"},{"id":3,"album_id":5,"member_id":1,"type":3,"update_time":"2018-02-02 14:39:44","create_time":"2018-02-02 14:39:44","delete_time":null,"creator":"admin","updater":"admin","ip":"221.238.11.98"}],"member":{"id":1,"name":"admin"}},{"id":2,"sn":"0033","name":"测试2","desc":"测试2描述描述测试2描述描述测试2描述描述测试2描述描述","time":"9月23日 早上5点","place":"海河弯","poster_url":"images/d19da847_3e0c_c6f3_c55f_62a0c90ce277","mantle_url":"images/55683e34_ce87_9ecb_0405_090ac0a06f25","watermark_url":"images/54ac2a4c_9042_d1a0_503f_2d5869f1f220","is_release":2,"member_id":1,"member_type":2,"update_time":"2018-02-01 17:35:00","create_time":"2018-01-29 11:44:44","delete_time":null,"creator":"admin","updater":"admin","ip":"221.238.11.98","album_member":[{"id":7,"album_id":2,"member_id":2,"type":3,"update_time":"2018-02-05 08:55:44","create_time":"2018-02-05 08:55:44","delete_time":null,"creator":"admin","updater":"admin","ip":"221.238.11.98"}],"member":{"id":1,"name":"admin"}}]
         * total : 3
         */

        private int total;
        private List<ListBean> list;

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean implements IPickerViewData {
            /**
             * id : 10
             * sn :
             * name : 我的相册
             * desc : 我的相册
             * time :
             * place :
             * poster_url :
             * mantle_url :
             * watermark_url :
             * is_release : 2
             * member_id : 2
             * member_type : 2
             * update_time : 2018-02-10 10:11:48
             * create_time : 2018-02-10 10:11:48
             * delete_time : null
             * creator : 测试账号
             * updater : 测试账号
             * ip : 220.115.233.200
             * album_member : [{"id":8,"album_id":10,"member_id":2,"type":1,"update_time":"2018-02-10 10:11:48","create_time":"2018-02-10 10:11:48","delete_time":null,"creator":"测试账号","updater":"测试账号","ip":"220.115.233.200"}]
             * member : {"id":2,"name":"测试账号"}
             */

            private int id;
            private String sn;
            private String name;
            private String desc;
            private String time;
            private String place;
            private String poster_url;
            private String mantle_url;
            private String watermark_url;
            private int is_release;
            private int member_id;
            private int member_type;
            private String update_time;
            private String create_time;
            private Object delete_time;
            private String creator;
            private String updater;
            private String ip;
            private MemberBean member;
            private int my_role;

            public int getMy_role() {
                return my_role;
            }

            public void setMy_role(int my_role) {
                this.my_role = my_role;
            }

            private List<AlbumMemberBean> album_member;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getSn() {
                return sn;
            }

            public void setSn(String sn) {
                this.sn = sn;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getDesc() {
                return desc;
            }

            public void setDesc(String desc) {
                this.desc = desc;
            }

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public String getPlace() {
                return place;
            }

            public void setPlace(String place) {
                this.place = place;
            }

            public String getPoster_url() {
                return poster_url;
            }

            public void setPoster_url(String poster_url) {
                this.poster_url = poster_url;
            }

            public String getMantle_url() {
                return mantle_url;
            }

            public void setMantle_url(String mantle_url) {
                this.mantle_url = mantle_url;
            }

            public String getWatermark_url() {
                return watermark_url;
            }

            public void setWatermark_url(String watermark_url) {
                this.watermark_url = watermark_url;
            }

            public int getIs_release() {
                return is_release;
            }

            public void setIs_release(int is_release) {
                this.is_release = is_release;
            }

            public int getMember_id() {
                return member_id;
            }

            public void setMember_id(int member_id) {
                this.member_id = member_id;
            }

            public int getMember_type() {
                return member_type;
            }

            public void setMember_type(int member_type) {
                this.member_type = member_type;
            }

            public String getUpdate_time() {
                return update_time;
            }

            public void setUpdate_time(String update_time) {
                this.update_time = update_time;
            }

            public String getCreate_time() {
                return create_time;
            }

            public void setCreate_time(String create_time) {
                this.create_time = create_time;
            }

            public Object getDelete_time() {
                return delete_time;
            }

            public void setDelete_time(Object delete_time) {
                this.delete_time = delete_time;
            }

            public String getCreator() {
                return creator;
            }

            public void setCreator(String creator) {
                this.creator = creator;
            }

            public String getUpdater() {
                return updater;
            }

            public void setUpdater(String updater) {
                this.updater = updater;
            }

            public String getIp() {
                return ip;
            }

            public void setIp(String ip) {
                this.ip = ip;
            }

            public MemberBean getMember() {
                return member;
            }

            public void setMember(MemberBean member) {
                this.member = member;
            }

            public List<AlbumMemberBean> getAlbum_member() {
                return album_member;
            }

            public void setAlbum_member(List<AlbumMemberBean> album_member) {
                this.album_member = album_member;
            }

            @Override
            public String getPickerViewText() {
                return name;
            }

            public static class MemberBean {
                /**
                 * id : 2
                 * name : 测试账号
                 */

                private int id;
                private String name;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }
            }

            public static class AlbumMemberBean {
                /**
                 * id : 8
                 * album_id : 10
                 * member_id : 2
                 * type : 1
                 * update_time : 2018-02-10 10:11:48
                 * create_time : 2018-02-10 10:11:48
                 * delete_time : null
                 * creator : 测试账号
                 * updater : 测试账号
                 * ip : 220.115.233.200
                 */

                private int id;
                private int album_id;
                private int member_id;
                private int type;
                private String update_time;
                private String create_time;
                private Object delete_time;
                private String creator;
                private String updater;
                private String ip;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getAlbum_id() {
                    return album_id;
                }

                public void setAlbum_id(int album_id) {
                    this.album_id = album_id;
                }

                public int getMember_id() {
                    return member_id;
                }

                public void setMember_id(int member_id) {
                    this.member_id = member_id;
                }

                public int getType() {
                    return type;
                }

                public void setType(int type) {
                    this.type = type;
                }

                public String getUpdate_time() {
                    return update_time;
                }

                public void setUpdate_time(String update_time) {
                    this.update_time = update_time;
                }

                public String getCreate_time() {
                    return create_time;
                }

                public void setCreate_time(String create_time) {
                    this.create_time = create_time;
                }

                public Object getDelete_time() {
                    return delete_time;
                }

                public void setDelete_time(Object delete_time) {
                    this.delete_time = delete_time;
                }

                public String getCreator() {
                    return creator;
                }

                public void setCreator(String creator) {
                    this.creator = creator;
                }

                public String getUpdater() {
                    return updater;
                }

                public void setUpdater(String updater) {
                    this.updater = updater;
                }

                public String getIp() {
                    return ip;
                }

                public void setIp(String ip) {
                    this.ip = ip;
                }
            }
        }
    }
}
